projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb498c2
)
css-provider: Fix up the Switch style
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Wed, 29 Dec 2010 03:09:14 +0000
(
03:09
+0000)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Mon, 31 Jan 2011 16:21:36 +0000
(16:21 +0000)
As it was with the old style, when the Switch is in the "on" state the
trough should be using the selected background color.
gtk/gtkcssprovider.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssprovider.c
b/gtk/gtkcssprovider.c
index 1c9b55041a96564d11e4569b0b7f3fe3b70d7525..0c94a453639af15aec92d6e567296ded70e24720 100644
(file)
--- a/
gtk/gtkcssprovider.c
+++ b/
gtk/gtkcssprovider.c
@@
-4022,6
+4022,11
@@
gtk_css_provider_get_default (void)
" border-color: shade (@bg_color, 0.8);\n"
"}\n"
"\n"
+ "GtkSwitch.trough:active {\n"
+ " background-color: @selected_bg_color;\n"
+ " color: @selected_fg_color;\n"
+ "}\n"
+ "\n"
"GtkToggleButton.button:inconsistent {\n"
" border-style: outset;\n"
" border-width: 1px;\n"